<?php 
include_once(''.P.'/public/header.html');
?>

<script type="text/javascript" src="res/bootstrapplugin/jquery-bootstable.js"></script>
<script type="text/javascript" src="res/menu/jquery-rockmenu.js"></script>
<link rel="stylesheet" type="text/css" href="res/menu/jquery-rockmenu.css">


<script>

function initbody(){
	deleterecordurl = '?m=dept&d=manage&cnum='+cnum+'&a=deldept';
	table = $('#viewshow').bootstable({
		url:'?m=company&d=plat&a=data',method:'get',celleditor:true,tablename:'8',
		cellurl:'index.php',fanye:true,cellurl:'index.php?a=savecell',
		columns:[{
			text:'',dataIndex:'logo',renderer:function(v){
				if(!v)v='images/noface.png';
				v='<img src="'+v+'" width="30">';
				return v;
			}
		},{
			text:'单位名称',dataIndex:'name',align:'left'
		},{
			text:'单位编号',dataIndex:'num'
		},{
			text:'单位简称',dataIndex:'shortname'
		},{
			text:'电话',dataIndex:'tel',editor:true
		},{
			text:'联系人',dataIndex:'contacts',editor:true
		},{
			text:'用户容量',dataIndex:'flaskm',editor:true,type:'number'
		},{
			text:'已加用户',dataIndex:'flasks'
		},{
			text:'状态',dataIndex:'status',sortable:true,type:'checkbox',editor:true
		},{
			text:'创建用户',dataIndex:'uid',sortable:true
		},{
			text:'ID',dataIndex:'id',sortable:true
		},{
			text:'创建时间',dataIndex:'createdt'
		},{
			text:'',dataIndex:'opts',align:'left',renderer:function(s,d){
				
				return '&nbsp;';
			}
		}]
	});
}


</script>
</head>

<body>

<?php 
include_once(''.P.'/public/top_plat.html');
?>

<div align="center">

<div style="width:<?=$maxwidth?>;margin:20px 0px" align="left">
	<div style="color:#cccccc">
		<a href="?d=plat" class="zhu"><?=lang('plat.home')?></a> &gt;
		<a href="" class="zhu"><?=lang('plat.company')?></a>
	</div>
	<div class="mainbody">
	
		<div style="padding:10px">
			<div style="padding:5px 0px">
			<table width="100%"><tr>
			<td align="left">
			<a class="webbtn" style="border-radius:5px" href="javascript:;" onclick="table.reload()">刷新</a>
			</td>
			<td align="right">
			
			</td>
			</tr>
			</table>
			
			
			
			</div>
			<div class="blank10"></div>
			<div id="viewshow" style="overflow:auto"></div>
		</div>
		<div class="blank10"></div>
	</div>
</div>



<?php 
include_once(''.P.'/public/footer.html');
?>
</div>

</body>
</html>